#include <winhack.h>
#include <CMalloc.h>

extern CMalloc* g_pMalloc;

extern "C" void * __cdecl ela_malloc(size_t size)
{
  return g_pMalloc->Alloc(size);
}

extern "C" void * __cdecl ela_realloc(PVoid pMem, size_t NewSize)
{
    return g_pMalloc->Realloc(pMem, NewSize);
}

extern "C" void __cdecl ela_free(PVoid pMem)
{
    g_pMalloc->Free(pMem);
}
